﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.Web;
using System.Text;

namespace WelcomeRESTJSONService
{
    [ServiceContract]
    public interface IWelcomeService
    {
        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, UriTemplate = "welcome/{yourname}")]
        TextMessage Welcome(string yourname);
    }

    [DataContract]
    public class TextMessage
    {
        [DataMember]
        public string Message { get; set; }
    }
}
